/**
 * 
 */
package com.mbengue.corp.apr.ra.core;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * @author MMB11447
 *
 */
@Entity
@Table
public class Section implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	private String nom;
	
	@Column
	private String description;
	
	@PrimaryKeyJoinColumn
	private Image logo;
	
	/**
	 * @return the nom
	 */
	public String getNom() {
		return nom;
	}
	
	/**
	 * @param nom the nom to set
	 */
	public void setNom(String nom) {
		this.nom = nom;
	}
	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	
	/**
	 * @return the logo
	 */
	public Image getLogo() {
		return logo;
	}
	
	/**
	 * @param logo the logo to set
	 */
	public void setLogo(Image logo) {
		this.logo = logo;
	}

	public Section(String nom, String description, Image logo) {
		super();
		this.nom = nom;
		this.description = description;
		this.logo = logo;
	}
	
	public Section() {
	}
}
